﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.EntityModel;
using YasharEl.Infrastructure.Core.Personification;

namespace YasharEl.Infrastructure.Core.EntityModel.Personification
{
    public class PersonEntity : Entity, IPerson
    {
        #region Entity Overrides

        public override long Id
        {
            get
            {
                return PersonId;
            }
            protected set
            {
                PersonId = value;
            }
        }

        #endregion

        #region IPerson Members

        public virtual long PersonId
        {
            get;
            set;
        }

        public virtual Name PersonName
        {
            get;
            set;
        }

        public virtual DateTime DateOfBirth
        {
            get;
            set;
        }

        public virtual DateTime? DateOfDeath
        {
            get;
            set;
        }

        public virtual Gender Gender
        {
            get;
            set;
        }

        public virtual MaritalStatus CurrentMaritalStatus
        {
            get;
            set;
        }

        #endregion
    }
}
